package com.superpai.request.shop;

import java.util.TreeMap;

import com.superpai.common.Constants;
import com.superpai.request.PaiPaiRequest;
import com.superpai.response.shop.GetShopInfoResponse;
import com.superpai.utils.ParameterUtils;

/**
 * @author Devin.Hu
 * @date 2011-8-14
 * @version V1.0
 * @description 查询店铺请求参数类
 */
public class GetShopInfoRequest implements PaiPaiRequest<GetShopInfoResponse> {

	/** 卖家uin号 **/
	private int sellerUin;
	/** 是否查询并输出promotions字段,1：输出,其他：不输出 **/
	private String showPromotionString;
	/** 是否查询并输出店铺关注数concernNum字段,1：输出,其他：不输出 **/
	private String enableConcern;
	
	public int getSellerUin() {
		return sellerUin;
	}

	public void setSellerUin(int sellerUin) {
		this.sellerUin = sellerUin;
	}

	public String getShowPromotionString() {
		return showPromotionString;
	}

	public void setShowPromotionString(String showPromotionString) {
		this.showPromotionString = showPromotionString;
	}

	public String getEnableConcern() {
		return enableConcern;
	}

	public void setEnableConcern(String enableConcern) {
		this.enableConcern = enableConcern;
	}

	@Override
	public String getApiMethodName() {
		return Constants.shop_getShopInfo_method;
	}

	@Override
	public TreeMap<String, String> getTextParams(ParameterUtils utils) throws Exception  
	{
		utils.addStringParam("sellerUin", this.sellerUin);
		utils.addStringParam("enableConcern", this.enableConcern);
		utils.addStringParam("showPromotionString", this.showPromotionString);
		
		return utils.getParamsMap();
	}

	@Override
	public Class<GetShopInfoResponse> getResponseClass() {
		return GetShopInfoResponse.class;
	}

}
